<script setup lang="ts">
import ElFormItemWrapper from "./components/ElFormItemWrapper.vue";
import {defineComponent, ref} from "vue";

const fieldModel = ref(null)

defineComponent({
  name: 'custom-el-checkbox-group'
})
defineProps({
  field: Object,
  activeItem: Object
})
</script>

<template>
  <ElFormItemWrapper :field="field" :activeItem="activeItem">
    <el-checkbox-group  v-model="fieldModel">
      <el-checkbox v-for="item in field?.options.optionItems" :key="item.value" :label="item.value">{{item.label}}</el-checkbox>
    </el-checkbox-group>
  </ElFormItemWrapper>
</template>

<style scoped>

</style>
